home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / GRAPHICS / VOXRAY.ZIP / GOBJECTS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-10  |  915 b   |  33 lines

  1. #ifndef _GOBJECTS_
  2. #define _GOBJECTS_
  3. #include <fstream.h>
  4. #include "types.h"
  5.  
  6. class gobject {
  7.   protected:
  8.     BOOL holdimage;
  9.     LONG length;
  10.     LONG image_size;
  11.     fstream inpcxfile, outpcxfile;
  12.     USHORT ni;
  13.     USHORT width,height;
  14.     UCHAR ** image;
  15.     LONG loadpcx(UCHAR imagenum);
  16.     LONG setup();
  17.     LONG writesetup();
  18.     LONG writepcx(UCHAR imagenum);
  19.   public:
  20.     gobject(UCHAR imagenum = 1);
  21.     LONG assigninfile(PCHAR filename,ULONG locate = 0);
  22.     LONG assignoutfile(PCHAR filename, ULONG locate = 0);
  23.     VOID Hold() {holdimage=TRUE;};
  24.     virtual LONG load(UCHAR imagenum = 0);
  25.     virtual LONG Write(UCHAR imagenum = 0);
  26.     virtual void show(PUCHAR screen, SHORT screen_width, USHORT x, USHORT y, UCHAR imagenum=0);
  27.     virtual void transparent_show(PUCHAR screen, SHORT screen_width, USHORT x, USHORT y, UCHAR imagenum=0);
  28.     ~gobject();
  29. };
  30.  
  31. #endif
  32.  
  33.